package com.sc.nft.service.impl;

import com.sc.nft.dao.PledgeTaskRewardDao;
import com.sc.nft.dto.DrawPrizeDTO;
import com.sc.nft.entity.PledgeTaskReward;
import com.sc.nft.entity.vo.PledgeTaskRewardVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.service.PledgeTaskRewardService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 质押任务-奖励列表服务接口实现
 *
 * @author Sun
 * @since 2023-06-12 15:36:43
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class PledgeTaskRewardServiceImpl implements PledgeTaskRewardService {
    private final PledgeTaskRewardDao pledgeTaskRewardDao;

    @Override
    public List<PledgeTaskReward> getListByPledgeTaskIdAndPledgeTaskCollectionId(Long pledgeTaskId, Long pledgeTaskCollectionId) {
        return pledgeTaskRewardDao.getListByPledgeTaskIdAndPledgeTaskCollectionId(pledgeTaskId, pledgeTaskCollectionId);
    }

    @Override
    public List<PledgeTaskReward> getListByPledgeTaskCollectionIdAndPledgeTaskId(Long pledgeTaskId, Long pledgeTaskCollectionId) {
        return pledgeTaskRewardDao.getListByPledgeTaskCollectionIdAndPledgeTaskId(pledgeTaskId, pledgeTaskCollectionId);
    }

    @Override
    public List<DrawPrizeDTO> getDrawPrizeDTOListByPledgeTaskCollectionIdAndPledgeTaskId(Long pledgeTaskId, Long pledgeTaskCollectionId) {
        return pledgeTaskRewardDao.getDrawPrizeDTOListByPledgeTaskCollectionIdAndPledgeTaskId(pledgeTaskId,pledgeTaskCollectionId);
    }
}